<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06绝对定位</title>
  <style>
    .fu{
      background-color: yellow;
      width: 500px;
      position: relative;
    }
    .fu>div{
      width: 100px;
      height: 100px;
    }
    .z1{

      background-color: red;
    }
    .z2{
      background-color: green;
      position: absolute;/*会萝莉文档流*/
      top: 0;
      right: 0;

    }
    .z3{
      background-color: blue;
position: relative;
    }
  </style>
</head>
<body>
<div class="fu">
  <div class="z1"></div>
  <div class="z2"></div>
  <div class="z3"></div>
</div>
</body>
</html>